package com.example.mywanandroid.ui.activity.login;

import androidx.lifecycle.ViewModelProvider;

import com.example.mywanandroid.R;
import com.example.mywanandroid.base.BaseFragment;
import com.example.mywanandroid.databinding.RegisterFragmentBinding;

public class FragmentRegister extends BaseFragment<RegisterFragmentBinding, LoginViewModel> {
    @Override
    protected int getLayoutResId() {
        return R.layout.register_fragment;
    }

    @Override
    protected void initViewModel() {
        mViewModel = new ViewModelProvider(getActivity()).get(LoginViewModel.class);
    }

    @Override
    protected void bindViewModel() {
        mDataBinding.setViewModel(mViewModel);
        mDataBinding.setActivity((LoginActivity) getActivity());
    }

    @Override
    protected void init() {

    }
}
